public class c {
    public static void main(String[] args) {

        int a = 48;
        Integer b = new Integer(a);//使用包装类
        String f = b.toString();
        System.out.println(f);
        System.out.println(c.c(f));
        System.out.println(c.asciiToString("48,49,50"));
    }

    public static String c(String value) {

        StringBuffer sbu = new StringBuffer();
        char[] chars = value.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            if (i != chars.length - 1) {
                sbu.append((int) chars[i]).append(",");
            } else {
                sbu.append((int) chars[i]);
            }
        }
        return sbu.toString();

    }
public  static String ddd(String aaa){
        StringBuffer x=new StringBuffer();
        char[] chars=aaa.toCharArray();
        for(int i=0;i<chars.length;i++)
        {
            x.append((int)chars[i]).append('.');
        }
        return x.toString();
}
public static String asciiToString1(String value)
{
    StringBuffer sbu = new StringBuffer();
    String[] chars = value.split(",");
    for (int i = 0; i < chars.length; i++) {
        sbu.append((char) Integer.parseInt(chars[i]));
    }
    return sbu.toString();
}
public static String asciiToString(String a)
{
    StringBuffer x=new StringBuffer();
    String[] chars=a.split(",");
    for (int i=0;i<chars.length;i++)
        x.append((char)Integer.parseInt (chars[i]));
    return x.toString();
}

}

